package cn.wolfcode.trip.base.domain;

import cn.wolfcode.trip.base.util.JSONUtil;
import lombok.Getter;
import lombok.Setter;

import java.util.HashMap;

/**
 * 商品类型
 */
@Getter
@Setter
public class ProductType extends BaseDomain{

    private String name;
    public String getJsonString(){
        HashMap<Object, Object> map = new HashMap<>();
        map.put("id", id);
        map.put("name", name);
        return JSONUtil.toJSONString(map);
    }
}